home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Full / NetObjects Fusion 9 Standard / NOF9_Full_EN.exe / data1.cab / Resources / flash / PageViewCtrl.js < prev    next >
Encoding:
Text File  |  2005-11-16  |  883 b   |  30 lines

  1. function MovieListener(objectId) {
  2.   this.objectId = objectId;
  3.  
  4.   MovieListener.prototype.onMovieInitialized = function(event) {
  5.     if (typeof(fusion) != "undefined" && fusion != null) {
  6.       var size = event.getState();
  7.       fusion.onNavFlashInitialized(this.objectId + ":" + size.w + ":" + size.h);
  8.     }
  9.   };
  10. }
  11.  
  12. function NOF_PageViewController(movieCollection) {
  13.   this.__proto__ = NOF_PageViewController.prototype;
  14.  
  15.   this.movieCollection = movieCollection;
  16. }
  17.  
  18. {
  19.   var method = NOF_PageViewController.prototype;
  20.  
  21.   method.onResize = function (width, height) {
  22.     var movie = this.movieCollection.getMovieByIndex(0);
  23.     movie.doInitialPositioning(width, height);
  24.     movie.restart();
  25.   }
  26.  
  27.   method.setProperty = function (name, value, commit) {
  28.     this.movieCollection.getMovieByIndex(0).callFlashMethod("setProperty", name + "," + value);
  29.   }
  30. }